﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PMS.SANY.Util;

namespace PMS.SANY.Entity
{
    /// <summary>
    /// 物料规格
    /// </summary>
    public partial class MaterielSpec : BusEntity
    {
        /// <summary>
        /// 物料ID
        /// </summary>
        public string MaterielId { set; get; }

        /// <summary>
        /// 图号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// MES编码
        /// </summary>
        public string MesCode { set; get; }

        /// <summary>
        /// 电气编码
        /// </summary>
        public int ElectricCode { set; get; }

        /// <summary>
        /// 型号
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 平台
        /// </summary>
        public string Desc { set; get; }
        /// <summary>
        /// 规格排序号
        /// </summary>
        public int Sort { set; get; }
    }

    public partial class MaterielSpec : BusEntity
    {
        /// <summary>
        /// 物料实体
        /// </summary>
        public MaterielInfor Materiel { set; get; }
    }

    /// <summary>
    /// 实体配置
    /// OnModelCreating
    /// </summary>
    public class MaterielSpecTypeConfig : BusEntityTypeConfig<MaterielSpec>, IEntityTypeConfiguration<MaterielSpec>
    {
        public override void Configure(EntityTypeBuilder<MaterielSpec> builder)
        {
            base.Configure(builder);

            #region 主外键关系
            builder.HasOne(p => p.Materiel).WithMany(p => p.Specs).HasForeignKey(p => p.MaterielId);
            #endregion

            #region 字段属性:最大长度,是否必需,默认值
            builder.Property(p => p.MaterielId).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Code).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Name).HasMaxLength(EntityDefinition.DefMiddleColLen).IsRequired();
            builder.Property(p => p.Desc).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Sort).IsRequired();
            #endregion

            #region 备注
            builder.HasComment("物料规格信息");
            builder.Property(p => p.MaterielId).HasComment("物料ID");
            builder.Property(p => p.Code).HasComment("规格编码");
            builder.Property(p => p.Name).HasComment("规格名称");
            builder.Property(p => p.Desc).HasComment("规格描述");
            builder.Property(p => p.Sort).HasComment("规格排序号");
            #endregion

            #region 种子数据
            //
            //builder.HasData(new MaterielSpec() { Id = "11", MesCode = "190007557", ElectricCode = 1, MaterielId = "10", Code = "2350-TG011011", Name = "TG011011", Sort = 1, Desc = "2350", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "12", MesCode = "190007076", ElectricCode = 2, MaterielId = "10", Code = "2280-TG01148", Name = "TG01148", Sort = 3, Desc = "2280", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "13", MesCode = "190007048", ElectricCode = 3, MaterielId = "10", Code = "2280-TG011210", Name = "TG011210", Sort = 4, Desc = "2280", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "14", MesCode = "190004004", ElectricCode = 4, MaterielId = "10", Code = "2280-TG01085", Name = "TG01085", Sort = 5, Desc = "2280", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "15", MesCode = "190003660", ElectricCode = 5, MaterielId = "10", Code = "2280-TG01103", Name = "TG01103", Sort = 6, Desc = "2280", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "16", MesCode = "190007142", ElectricCode = 6, MaterielId = "10", Code = "2240-TG01088", Name = "TG01088", Sort = 8, Desc = "2240", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "17", MesCode = "190007125", ElectricCode = 7, MaterielId = "10", Code = "2240-TG01094", Name = "TG01094", Sort = 9, Desc = "2240", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "18", MesCode = "190007001", ElectricCode = 8, MaterielId = "10", Code = "2240-TG01108", Name = "TG01108", Sort = 10, Desc = "2240", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "19", MesCode = "190007795", ElectricCode = 9, MaterielId = "10", Code = "2350-TG011213", Name = "TG011213", Sort = 2, Desc = "2350", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "20", MesCode = "190007525", ElectricCode = 10, MaterielId = "10", Code = "2240-TG011010", Name = "TG011010", Sort = 11, Desc = "2240", CreateUserId = "1", ModifyUserId = "1" });

            ////builder.HasData(new MaterielSpec() { Id = "16", MesCode = "190007658", ElectricCode = 7, MaterielId = "10", Code = "2280-TG011212", Name = "TG011212", Sort = 7, Desc = "2280", CreateUserId = "1", ModifyUserId = "1" });            
            ////builder.HasData(new MaterielSpec() { Id = "21", MesCode = "190007795", ElectricCode = 21, MaterielId = "10", Code = "2350-TG01128", Name = "TG01128", Sort = 7, Desc = "2350", CreateUserId = "1", ModifyUserId = "1" });

            ////封头总成
            //builder.HasData(new MaterielSpec() { Id ="100101", MesCode = "190007556", ElectricCode = 0, MaterielId = "1001", Code = "TG011011.1.5", Name = "TG011011.1.5", Sort = 1, Desc = "TG011011.1.5 封头总成", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100102", MesCode = "190007790", ElectricCode = 0, MaterielId = "1001", Code = "TG011213.1.5", Name = "TG011213.1.5", Sort = 2, Desc = "TG011213.1.5 封头总成", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100103", MesCode = "190007078", ElectricCode = 0, MaterielId = "1001", Code = "TG01148.1.4", Name = "TG01148.1.4", Sort = 3, Desc = "TG01148.1.4 封头总成", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100104", MesCode = "190007047", ElectricCode = 0, MaterielId = "1001", Code = "TG011210.1.4", Name = "TG011210.1.4", Sort = 4, Desc = "TG011210.1.4 封头总成", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100105", MesCode = "190003099", ElectricCode = 0, MaterielId = "1001", Code = "TG01083.1.4", Name = "TG01083.1.4", Sort = 5, Desc = "TG01083.1.4 封头总成", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100106", MesCode = "190007097", ElectricCode = 0, MaterielId = "1001", Code = "TG01108.1.4", Name = "TG01108.1.4", Sort = 6, Desc = "TG01108.1.4 封头总成", CreateUserId = "1", ModifyUserId = "1" });

            ////前锥段拼板
            //builder.HasData(new MaterielSpec() { Id = "1002011", MesCode = "190007540", ElectricCode = 0, MaterielId = "10021", Code = "TG011011.1.1 - 1", Name = "TG011011.1.1 - 1", Sort = 1, Desc = "TG011011.1.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002021", MesCode = "190007783", ElectricCode = 0, MaterielId = "10021", Code = "TG011213.1.1 - 1", Name = "TG011213.1.1 - 1", Sort = 2, Desc = "TG011213.1.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002031", MesCode = "190007079", ElectricCode = 0, MaterielId = "10021", Code = "TG01148.1.1 - 1", Name = "TG01148.1.1 - 1", Sort = 3, Desc = "TG01148.1.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002041", MesCode = "190007055", ElectricCode = 0, MaterielId = "10021", Code = "TG011210.1.1 - 1", Name = "TG011210.1.1 - 1", Sort = 4, Desc = "TG011210.1.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002051", MesCode = "190004837", ElectricCode = 0, MaterielId = "10021", Code = "TG01103.1II.1 - 1", Name = "TG01103.1II.1 - 1", Sort = 5, Desc = "TG01103.1II.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002061", MesCode = "190007411", ElectricCode = 0, MaterielId = "10021", Code = "TG01108.1III.1 - 1", Name = "TG01108.1III.1 - 1", Sort = 6, Desc = "TG01108.1III.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002071", MesCode = "190007528", ElectricCode = 0, MaterielId = "10021", Code = "TG011010.1.1 - 1", Name = "TG011010.1.1 - 1", Sort = 7, Desc = "TG011010.1.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1002081", MesCode = "190007663", ElectricCode = 0, MaterielId = "10021", Code = "TG011212.1.1 - 1", Name = "TG011212.1.1 - 1", Sort = 8, Desc = "TG011212.1.1 - 1 前锥拼板", CreateUserId = "1", ModifyUserId = "1" });

            ////前锥段筒体
            //builder.HasData(new MaterielSpec() { Id ="100201", MesCode = "190007540", ElectricCode = 0, MaterielId = "1002", Code = "TG011011.1.1 - 1", Name = "TG011011.1.1 - 1", Sort = 1, Desc = "TG011011.1.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100202", MesCode = "190007783", ElectricCode = 0, MaterielId = "1002", Code = "TG011213.1.1 - 1", Name = "TG011213.1.1 - 1", Sort = 2, Desc = "TG011213.1.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100203", MesCode = "190007079", ElectricCode = 0, MaterielId = "1002", Code = "TG01148.1.1 - 1", Name = "TG01148.1.1 - 1", Sort = 3, Desc = "TG01148.1.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100204", MesCode = "190007055", ElectricCode = 0, MaterielId = "1002", Code = "TG011210.1.1 - 1", Name = "TG011210.1.1 - 1", Sort = 4, Desc = "TG011210.1.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100205", MesCode = "190004837", ElectricCode = 0, MaterielId = "1002", Code = "TG01103.1II.1 - 1", Name = "TG01103.1II.1 - 1", Sort = 5, Desc = "TG01103.1II.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100206", MesCode = "190007411", ElectricCode = 0, MaterielId = "1002", Code = "TG01108.1III.1 - 1", Name = "TG01108.1III.1 - 1", Sort = 6, Desc = "TG01108.1III.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100207", MesCode = "190007528", ElectricCode = 0, MaterielId = "1002", Code = "TG011010.1.1 - 1", Name = "TG011010.1.1 - 1", Sort = 7, Desc = "TG011010.1.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100208", MesCode = "190007663", ElectricCode = 0, MaterielId = "1002", Code = "TG011212.1.1 - 1", Name = "TG011212.1.1 - 1", Sort = 8, Desc = "TG011212.1.1 - 1 前锥筒体", CreateUserId = "1", ModifyUserId = "1" });

            ////圆柱段拼板
            //builder.HasData(new MaterielSpec() { Id = "1003011", MesCode = "190007552", ElectricCode = 0, MaterielId = "10031", Code = "TG011011.1.2 - 1", Name = "TG011011.1.2 - 1", Sort = 1, Desc = "TG011011.1.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003021", MesCode = "190007785", ElectricCode = 0, MaterielId = "10031", Code = "TG011213.1.2 - 1", Name = "TG011213.1.2 - 1", Sort = 2, Desc = "TG011213.1.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003031", MesCode = "190007081", ElectricCode = 0, MaterielId = "10031", Code = "TG01148.1.2 - 1", Name = "TG01148.1.2 - 1", Sort = 3, Desc = "TG01148.1.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003041", MesCode = "190007057", ElectricCode = 0, MaterielId = "10031", Code = "TG011210.1.2 - 1", Name = "TG011210.1.2 - 1", Sort = 4, Desc = "TG011210.1.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003051", MesCode = "190005023", ElectricCode = 0, MaterielId = "10031", Code = "TG01085.1II.2 - 1", Name = "TG01085.1II.2 - 1", Sort = 5, Desc = "TG01085.1II.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003061", MesCode = "190004845", ElectricCode = 0, MaterielId = "10031", Code = "TG01103.1II.2 - 1", Name = "TG01103.1II.2 - 1", Sort = 6, Desc = "TG01103.1II.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003071", MesCode = "190008001", ElectricCode = 0, MaterielId = "10031", Code = "TG01088.1II.2 - 1", Name = "TG01088.1II.2 - 1", Sort = 7, Desc = "TG01088.1II.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003081", MesCode = "190007811", ElectricCode = 0, MaterielId = "10031", Code = "TG01094.1III.2 - 1", Name = "TG01094.1III.2 - 1", Sort = 8, Desc = "TG01094.1III.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1003091", MesCode = "190007418", ElectricCode = 0, MaterielId = "10031", Code = "TG01108.1III.2 - 1", Name = "TG01108.1III.2 - 1", Sort = 9, Desc = "TG01108.1III.2 - 1 中筒拼板", CreateUserId = "1", ModifyUserId = "1" });

            ////圆柱段筒体
            //builder.HasData(new MaterielSpec() { Id ="100301", MesCode = "190007552", ElectricCode = 0, MaterielId = "1003", Code = "TG011011.1.2 - 1", Name = "TG011011.1.2 - 1", Sort = 1, Desc = "TG011011.1.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100302", MesCode = "190007785", ElectricCode = 0, MaterielId = "1003", Code = "TG011213.1.2 - 1", Name = "TG011213.1.2 - 1", Sort = 2, Desc = "TG011213.1.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100303", MesCode = "190007081", ElectricCode = 0, MaterielId = "1003", Code = "TG01148.1.2 - 1", Name = "TG01148.1.2 - 1", Sort = 3, Desc = "TG01148.1.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100304", MesCode = "190007057", ElectricCode = 0, MaterielId = "1003", Code = "TG011210.1.2 - 1", Name = "TG011210.1.2 - 1", Sort = 4, Desc = "TG011210.1.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100305", MesCode = "190005023", ElectricCode = 0, MaterielId = "1003", Code = "TG01085.1II.2 - 1", Name = "TG01085.1II.2 - 1", Sort = 5, Desc = "TG01085.1II.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100306", MesCode = "190004845", ElectricCode = 0, MaterielId = "1003", Code = "TG01103.1II.2 - 1", Name = "TG01103.1II.2 - 1", Sort = 6, Desc = "TG01103.1II.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100307", MesCode = "190008001", ElectricCode = 0, MaterielId = "1003", Code = "TG01088.1II.2 - 1", Name = "TG01088.1II.2 - 1", Sort = 7, Desc = "TG01088.1II.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100308", MesCode = "190007811", ElectricCode = 0, MaterielId = "1003", Code = "TG01094.1III.2 - 1", Name = "TG01094.1III.2 - 1", Sort = 8, Desc = "TG01094.1III.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100309", MesCode = "190007418", ElectricCode = 0, MaterielId = "1003", Code = "TG01108.1III.2 - 1", Name = "TG01108.1III.2 - 1", Sort = 9, Desc = "TG01108.1III.2 - 1 中筒筒体", CreateUserId = "1", ModifyUserId = "1" });

            ////后锥前段拼板
            //builder.HasData(new MaterielSpec() { Id = "1004011", MesCode = "190007553", ElectricCode = 0, MaterielId = "10041", Code = "TG011011.1.3 - 1", Name = "TG011011.1.3 - 1", Sort = 1, Desc = "TG011011.1.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004021", MesCode = "190007786", ElectricCode = 0, MaterielId = "10041", Code = "TG011213.1.3 - 1", Name = "TG011213.1.3 - 1", Sort = 2, Desc = "TG011213.1.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004031", MesCode = "190007083", ElectricCode = 0, MaterielId = "10041", Code = "TG01148.1.3 - 1", Name = "TG01148.1.3 - 1", Sort = 3, Desc = "TG01148.1.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004041", MesCode = "190007060", ElectricCode = 0, MaterielId = "10041", Code = "TG011210.1.3 - 1", Name = "TG011210.1.3 - 1", Sort = 4, Desc = "TG011210.1.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004051", MesCode = "190005021", ElectricCode = 0, MaterielId = "10041", Code = "TG01085.1II.3 - 1", Name = "TG01085.1II.3 - 1", Sort = 5, Desc = "TG01085.1II.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004061", MesCode = "190004838", ElectricCode = 0, MaterielId = "10041", Code = "TG01103.1II.3 - 1", Name = "TG01103.1II.3 - 1", Sort = 6, Desc = "TG01103.1II.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004071", MesCode = "190007422", ElectricCode = 0, MaterielId = "10041", Code = "TG01108.1III.3 - 1", Name = "TG01108.1III.3 - 1", Sort = 7, Desc = "TG01108.1III.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004081", MesCode = "190007994", ElectricCode = 0, MaterielId = "10041", Code = "TG01088.1II.3 - 1", Name = "TG01088.1II.3 - 1", Sort = 8, Desc = "TG01088.1II.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004091", MesCode = "190007538", ElectricCode = 0, MaterielId = "10041", Code = "TG011010.1.3 - 1", Name = "TG011010.1.3 - 1", Sort = 9, Desc = "TG011010.1.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1004101", MesCode = "190007672", ElectricCode = 0, MaterielId = "10041", Code = "TG011212.1.3 - 1", Name = "TG011212.1.3 - 1", Sort = 10, Desc = "TG011212.1.3 - 1 后锥前拼板", CreateUserId = "1", ModifyUserId = "1" });

            ////后锥前段筒体
            //builder.HasData(new MaterielSpec() { Id ="100401", MesCode = "190007553", ElectricCode = 0, MaterielId = "1004", Code = "TG011011.1.3 - 1", Name = "TG011011.1.3 - 1", Sort = 1, Desc = "TG011011.1.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100402", MesCode = "190007786", ElectricCode = 0, MaterielId = "1004", Code = "TG011213.1.3 - 1", Name = "TG011213.1.3 - 1", Sort = 2, Desc = "TG011213.1.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100403", MesCode = "190007083", ElectricCode = 0, MaterielId = "1004", Code = "TG01148.1.3 - 1", Name = "TG01148.1.3 - 1", Sort = 3, Desc = "TG01148.1.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100404", MesCode = "190007060", ElectricCode = 0, MaterielId = "1004", Code = "TG011210.1.3 - 1", Name = "TG011210.1.3 - 1", Sort = 4, Desc = "TG011210.1.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100405", MesCode = "190005021", ElectricCode = 0, MaterielId = "1004", Code = "TG01085.1II.3 - 1", Name = "TG01085.1II.3 - 1", Sort = 5, Desc = "TG01085.1II.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100406", MesCode = "190004838", ElectricCode = 0, MaterielId = "1004", Code = "TG01103.1II.3 - 1", Name = "TG01103.1II.3 - 1", Sort = 6, Desc = "TG01103.1II.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100407", MesCode = "190007422", ElectricCode = 0, MaterielId = "1004", Code = "TG01108.1III.3 - 1", Name = "TG01108.1III.3 - 1", Sort = 7, Desc = "TG01108.1III.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100408", MesCode = "190007994", ElectricCode = 0, MaterielId = "1004", Code = "TG01088.1II.3 - 1", Name = "TG01088.1II.3 - 1", Sort = 8, Desc = "TG01088.1II.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100409", MesCode = "190007538", ElectricCode = 0, MaterielId = "1004", Code = "TG011010.1.3 - 1", Name = "TG011010.1.3 - 1", Sort = 9, Desc = "TG011010.1.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100410", MesCode = "190007672", ElectricCode = 0, MaterielId = "1004", Code = "TG011212.1.3 - 1", Name = "TG011212.1.3 - 1", Sort = 10, Desc = "TG011212.1.3 - 1 后锥前筒体", CreateUserId = "1", ModifyUserId = "1" });

            ////后锥段拼板
            //builder.HasData(new MaterielSpec() { Id = "1005011", MesCode = "190007542", ElectricCode = 0, MaterielId = "10051", Code = "TG011011.1.4 - 1", Name = "TG011011.1.4 - 1", Sort = 1, Desc = "TG011011.1.4 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005021", MesCode = "190007789", ElectricCode = 0, MaterielId = "10051", Code = "TG011213.1.4 - 1", Name = "TG011213.1.4 - 1", Sort = 2, Desc = "TG011213.1.4 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005031", MesCode = "190007083", ElectricCode = 0, MaterielId = "10051", Code = "TG01148.1.3 - 1", Name = "TG01148.1.3 - 1", Sort = 3, Desc = "TG01148.1.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005041", MesCode = "190007060", ElectricCode = 0, MaterielId = "10051", Code = "TG011210.1.3 - 1", Name = "TG011210.1.3 - 1", Sort = 4, Desc = "TG011210.1.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005051", MesCode = "190005021", ElectricCode = 0, MaterielId = "10051", Code = "TG01085.1II.3 - 1", Name = "TG01085.1II.3 - 1", Sort = 5, Desc = "TG01085.1II.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005061", MesCode = "190004838", ElectricCode = 0, MaterielId = "10051", Code = "TG01103.1II.3 - 1", Name = "TG01103.1II.3 - 1", Sort = 6, Desc = "TG01103.1II.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005071", MesCode = "190007422", ElectricCode = 0, MaterielId = "10051", Code = "TG01108.1III.3 - 1", Name = "TG01108.1III.3 - 1", Sort = 7, Desc = "TG01108.1III.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005081", MesCode = "190007994", ElectricCode = 0, MaterielId = "10051", Code = "TG01088.1II.3 - 1", Name = "TG01088.1II.3 - 1", Sort = 8, Desc = "TG01088.1II.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005091", MesCode = "190007538", ElectricCode = 0, MaterielId = "10051", Code = "TG011010.1.3 - 1", Name = "TG011010.1.3 - 1", Sort = 9, Desc = "TG011010.1.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "1005101", MesCode = "190007672", ElectricCode = 0, MaterielId = "10051", Code = "TG011212.1.3 - 1", Name = "TG011212.1.3 - 1", Sort = 10, Desc = "TG011212.1.3 - 1 后锥后拼板", CreateUserId = "1", ModifyUserId = "1" });

            ////后锥段筒体
            //builder.HasData(new MaterielSpec() { Id ="100501", MesCode = "190007542", ElectricCode = 0, MaterielId = "1005", Code = "TG011011.1.4 - 1", Name = "TG011011.1.4 - 1", Sort = 1, Desc = "TG011011.1.4 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100502", MesCode = "190007789", ElectricCode = 0, MaterielId = "1005", Code = "TG011213.1.4 - 1", Name = "TG011213.1.4 - 1", Sort = 2, Desc = "TG011213.1.4 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100503", MesCode = "190007083", ElectricCode = 0, MaterielId = "1005", Code = "TG01148.1.3 - 1", Name = "TG01148.1.3 - 1", Sort = 3, Desc = "TG01148.1.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100504", MesCode = "190007060", ElectricCode = 0, MaterielId = "1005", Code = "TG011210.1.3 - 1", Name = "TG011210.1.3 - 1", Sort = 4, Desc = "TG011210.1.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100505", MesCode = "190005021", ElectricCode = 0, MaterielId = "1005", Code = "TG01085.1II.3 - 1", Name = "TG01085.1II.3 - 1", Sort = 5, Desc = "TG01085.1II.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100506", MesCode = "190004838", ElectricCode = 0, MaterielId = "1005", Code = "TG01103.1II.3 - 1", Name = "TG01103.1II.3 - 1", Sort = 6, Desc = "TG01103.1II.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100507", MesCode = "190007422", ElectricCode = 0, MaterielId = "1005", Code = "TG01108.1III.3 - 1", Name = "TG01108.1III.3 - 1", Sort = 7, Desc = "TG01108.1III.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100508", MesCode = "190007994", ElectricCode = 0, MaterielId = "1005", Code = "TG01088.1II.3 - 1", Name = "TG01088.1II.3 - 1", Sort = 8, Desc = "TG01088.1II.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100509", MesCode = "190007538", ElectricCode = 0, MaterielId = "1005", Code = "TG011010.1.3 - 1", Name = "TG011010.1.3 - 1", Sort = 9, Desc = "TG011010.1.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100510", MesCode = "190007672", ElectricCode = 0, MaterielId = "1005", Code = "TG011212.1.3 - 1", Name = "TG011212.1.3 - 1", Sort = 10, Desc = "TG011212.1.3 - 1 后锥后筒体", CreateUserId = "1", ModifyUserId = "1" });

            ////进料管
            //builder.HasData(new MaterielSpec() { Id ="100601", MesCode = "190007073", ElectricCode = 0, MaterielId = "1006", Code = "TG011210.1.3.11 - 2", Name = "TG011210.1.3.11 - 2", Sort = 1, Desc = "TG011210.1.3.11 - 2 进料管", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100602", MesCode = "190003359", ElectricCode = 0, MaterielId = "1006", Code = "TG01124.1.3 - 15", Name = "TG01124.1.3 - 15", Sort = 2, Desc = "TG01124.1.3 - 15 进料管", CreateUserId = "1", ModifyUserId = "1" });

            ////进料喇叭
            //builder.HasData(new MaterielSpec() { Id ="100701", MesCode = "190007122", ElectricCode = 0, MaterielId = "1007", Code = "TG01108.1.3.13 - 1", Name = "TG01108.1.3.13 - 1", Sort = 1, Desc = "TG01108.1.3.13 - 1 进料喇叭", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100702", MesCode = "190004835", ElectricCode = 0, MaterielId = "1007", Code = "TG01103.1II.3 - 12", Name = "TG01103.1II.3 - 12", Sort = 2, Desc = "TG01103.1II.3 - 12 进料喇叭", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id = "100703", MesCode = "190007072", ElectricCode = 0, MaterielId = "1007", Code = "TG01103.1II.3 - 12", Name = "？？？", Sort = 2, Desc = "？？？ 进料喇叭", CreateUserId = "1", ModifyUserId = "1" });

            ////后挡圈Ⅰ
            //builder.HasData(new MaterielSpec() { Id ="100901", MesCode = "190007098", ElectricCode = 0, MaterielId = "1009", Code = "TG01108.1 - 5", Name = "TG01108.1 - 5", Sort = 1, Desc = "TG01108.1 - 5 后挡圈Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100902", MesCode = "190007793", ElectricCode = 0, MaterielId = "1009", Code = "TG011213.1 - 6", Name = "TG011213.1 - 6", Sort = 2, Desc = "TG011213.1 - 6 后挡圈Ⅰ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100903", MesCode = "190100175", ElectricCode = 0, MaterielId = "1009", Code = "TG01121.1 - 6", Name = "TG01121.1 - 6", Sort = 3, Desc = "TG01121.1 - 6 后挡圈Ⅰ", CreateUserId = "1", ModifyUserId = "1" });

            ////后挡圈Ⅱ
            //builder.HasData(new MaterielSpec() { Id ="101001", MesCode = "190007322", ElectricCode = 0, MaterielId = "1010", Code = "TG01108.1II - 6", Name = "TG01108.1II - 6", Sort = 1, Desc = "TG01108.1II - 6 后挡圈II", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101002", MesCode = "190100174", ElectricCode = 0, MaterielId = "1010", Code = "TG01121.1 - 5", Name = "TG01121.1 - 5", Sort = 2, Desc = "TG01121.1 - 5 后挡圈Ⅱ", CreateUserId = "1", ModifyUserId = "1" });

            ////滚道
            //builder.HasData(new MaterielSpec() { Id ="101101", MesCode = "190007509", ElectricCode = 0, MaterielId = "1011", Code = "TG01109.1.4 - 11", Name = "TG01109.1.4 - 11", Sort = 1, Desc = "TG01109.1.4 - 11 滚道", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101102", MesCode = "190007780", ElectricCode = 0, MaterielId = "1011", Code = "TG011213.1.4 - 2", Name = "TG011213.1.4 - 2", Sort = 2, Desc = "TG011213.1.4 - 2 滚道", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101103", MesCode = "190007084", ElectricCode = 0, MaterielId = "1011", Code = "TG01148.1.3 - 2", Name = "TG01148.1.3 - 2", Sort = 3, Desc = "TG01148.1.3 - 2 滚道", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101104", MesCode = "190007071", ElectricCode = 0, MaterielId = "1011", Code = "TG011210.1.3 - 12", Name = "TG011210.1.3 - 12", Sort = 4, Desc = "TG011210.1.3 - 12 滚道", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101105", MesCode = "190002749", ElectricCode = 0, MaterielId = "1011", Code = "TG01102.1.3 - 10", Name = "TG01102.1.3 - 10", Sort = 5, Desc = "TG01102.1.3 - 10 滚道", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101106", MesCode = "190007121", ElectricCode = 0, MaterielId = "1011", Code = "TG01108.1.3 - 14", Name = "TG01108.1.3 - 14", Sort = 6, Desc = "TG01108.1.3 - 14 滚道", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="101107", MesCode = "190007149", ElectricCode = 0, MaterielId = "1011", Code = "TG01088.1.3 - 11", Name = "TG01088.1.3 - 11", Sort = 7, Desc = "TG01088.1.3 - 11 滚道", CreateUserId = "1", ModifyUserId = "1" });

            ////叶片
            //builder.HasData(new MaterielSpec() { Id = "100800", MesCode = "0", ElectricCode = 0, MaterielId = "1008", Code = "-", Name = "-", Sort = 1, Desc = "", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100801", MesCode = "190007810", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 8A", Name = "TG01108.1III.3 - 8A", Sort = 1, Desc = "TG01108.1III.3 - 8A 叶片ⅩⅣ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100802", MesCode = "190007809", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 7A", Name = "TG01108.1III.3 - 7A", Sort = 2, Desc = "TG01108.1III.3 - 7A 叶片ⅩⅢ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100803", MesCode = "190007808", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 6A", Name = "TG01108.1III.3 - 6A", Sort = 3, Desc = "TG01108.1III.3 - 6A 叶片ⅩⅡ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100804", MesCode = "190007426", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 5", Name = "TG01108.1III.3 - 5", Sort = 4, Desc = "TG01108.1III.3 - 5 叶片ⅩⅠ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100805", MesCode = "190007425", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 4", Name = "TG01108.1III.3 - 4", Sort = 5, Desc = "TG01108.1III.3 - 4 叶片Ⅹ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100806", MesCode = "190007424", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 3", Name = "TG01108.1III.3 - 3", Sort = 6, Desc = "TG01108.1III.3 - 3 叶片Ⅸ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100807", MesCode = "190007423", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.3 - 2", Name = "TG01108.1III.3 - 2", Sort = 7, Desc = "TG01108.1III.3 - 2 叶片Ⅷ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100808", MesCode = "190007419", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.2 - 2", Name = "TG01108.1III.2 - 2", Sort = 8, Desc = "TG01108.1III.2 - 2 叶片Ⅶ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100809", MesCode = "190007333", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.1 - 7", Name = "TG01108.1III.1 - 7", Sort = 9, Desc = "TG01108.1III.1 - 7 叶片Ⅵ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100810", MesCode = "190007779", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.1 - 6A", Name = "TG01108.1III.1 - 6A", Sort = 10, Desc = "TG01108.1III.1 - 6A 叶片Ⅴ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100811", MesCode = "190007778", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.1 - 5A", Name = "TG01108.1III.1 - 5A", Sort = 11, Desc = "TG01108.1III.1 - 5A 叶片Ⅳ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100812", MesCode = "190007777", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.1 - 4A", Name = "TG01108.1III.1 - 4A", Sort = 12, Desc = "TG01108.1III.1 - 4A 叶片Ⅲ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100813", MesCode = "190007776", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.1 - 3A", Name = "TG01108.1III.1 - 3A", Sort = 13, Desc = "TG01108.1III.1 - 3A 叶片Ⅱ", CreateUserId = "1", ModifyUserId = "1" });
            //builder.HasData(new MaterielSpec() { Id ="100814", MesCode = "190007775", ElectricCode = 0, MaterielId = "1008", Code = "TG01108.1III.1 - 2A", Name = "TG01108.1III.1 - 2A", Sort = 14, Desc = "TG01108.1III.1 - 2A 叶片Ⅰ", CreateUserId = "1", ModifyUserId = "1" });

            #endregion
        }
    }
}
